package logic.common.game;

import logic.DelayedController;
import logic.common.team.Team;

public class TicketsDegradingController extends DelayedController {
	
	private static final long serialVersionUID = 1L;
	
	public static final float TICKET_DEGRADING_TIME = 5f;
	
	private Team team;
	
	public TicketsDegradingController(Team team) {
		super(TICKET_DEGRADING_TIME);
		this.team = team;
	}
	
	@Override
	protected void delayedUpdate(float time) {
		team.decreaseTickets();
	}
}